package com.cnt.service;

import com.cnt.entity.User;
import com.cnt.vo.UserResultVo.LoginResultVo;
import com.cnt.vo.ResultVo;
import com.cnt.vo.UserResultVo.queryUserResultVo;

import java.util.List;

public interface UserService{

    public ResultVo<String> userRegister(User user);

    public ResultVo<LoginResultVo> login(String account, String password);

    public List<queryUserResultVo> queryUser(String account, String phone, Integer queryType, Integer queryStatus, Integer querySort);

    public ResultVo<String> changePassword(String account, String password, String newPassword);

    ResultVo changeUserRole(Integer userId,Integer operatorId);

    ResultVo deleteUserById(Integer userId,Integer operatorId);

    ResultVo updateUserStatus(Integer userId,Integer operatorId);

    public ResultVo<String> checkAccount(String account);

    public ResultVo<String> checkIdCard(String idCard);

    ResultVo<String> cancelAccount(Integer userId,String account, String IdCard);
}
